﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CreatePlanInfoExcel.aspx.cs"
    Inherits="CreateExcel_CreatePlanInfoExcel" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>导出记录</title>
</head>
<body>
    <form id="form1" runat="server">
        <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="false" OnRowDataBound="gvData_RowDataBound">
            <Columns>
                <asp:TemplateField HeaderText="科室名称" HeaderStyle-Width="200px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "DI_DepartmentlName").ToString()%>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="患者姓名" HeaderStyle-Width="100px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "PI_Name").ToString()%>
                     
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="性别" HeaderStyle-Width="50px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "PI_Sex")%>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="50px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="手机号码" HeaderStyle-Width="100px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "PI_MobileNum")%>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预约时段" HeaderStyle-Width="200px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "TS_SliceName").ToString()%>
                   
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="200px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预约日期" HeaderStyle-Width="100px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <asp:Label ID="lblPI_PlanTime" runat="server" Text='<%# Cisoft.IntegrationSystem.Common.Function.cutString(System.Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "PI_PlanTime")).ToString("yyyy年MM月dd日"), 11)%>'></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                </asp:TemplateField>
                <asp:TemplateField HeaderText="预约留言" HeaderStyle-Width="200px" HeaderStyle-Height="30px">
                    <ItemTemplate>
                        <%# DataBinder.Eval(Container.DataItem, "PI_Summary").ToString()%>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <asp:LinkButton ID="lbtn" runat="server" Text="out" OnClick="lbtn_Click"></asp:LinkButton>
    </form>
</body>
</html>
